package com.kgc.scd.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @program: com.kgc.scd.bean
 * @author: HarryXzy
 * @create: 2022-06-21 22:00
 * @description:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ModifyUser {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String userName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String userPwd;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String userPhone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String userEmail;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别")
    private String userSex;

    /**
     * 生日
     */
    @ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date userBirth;

    /**
     * 默认收货地址id
     */
    @ApiModelProperty(value = "默认收货地址id")
    private String userAddrId;


}
